<template>
  <footer>
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <h3 class="footer-title">心灵守护站</h3>
          <p class="footer-text">
            我们致力于提供一个安全、舒适的平台，帮助您记录情绪、分析心理状态，
            并提供专业的心理健康资源和放松技巧。
          </p>
        </div>
        
        <div class="footer-section">
          <h3 class="footer-title">快速链接</h3>
          <ul class="footer-links">
            <li><router-link to="/">首页</router-link></li>
            <li><router-link to="/diary">情绪日记</router-link></li>
            <li><router-link to="/emotion-analysis">情绪分析</router-link></li>
            <li><router-link to="/relaxation">放松练习</router-link></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h3 class="footer-title">紧急联系</h3>
          <ul class="footer-links">
            <li>全国心理援助热线：400-161-9995</li>
            <li>北京心理危机干预热线：010-82951332</li>
            <li>上海心理援助热线：021-12320-5</li>
          </ul>
        </div>
      </div>
      <div class="footer-bottom">
        <p>© 2024 心灵守护站 - 心理健康情绪日记与疏导平台. 保留所有权利。</p>
        <p class="disclaimer">免责声明：本平台提供的信息仅供参考，不构成专业医疗建议。如有严重心理困扰，请及时寻求专业人士帮助。</p>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'Footer'
}
</script>

<style scoped>
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 20px;
  margin-bottom: 16px;
  color: white;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 1.5px;
}

.footer-text {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.disclaimer {
  font-size: 12px !important;
  max-width: 800px;
  margin: 8px auto 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a:hover {
    transform: none;
  }
}
</style>